package dao.impl;

import com.sun.media.sound.FFT;
import dao.FilmMapper;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import pojo.Film;

import java.util.List;

public class FilmMapperImpl extends SqlSessionDaoSupport implements FilmMapper {
    public List<Film> getBypage(int index, int size) {
        return getSqlSession().getMapper(FilmMapper.class).getBypage(index, size);
    }

    public int count() {
        return getSqlSession().getMapper(FilmMapper.class).count();
    }

    public int delete(int id) {
        return getSqlSession().getMapper(FilmMapper.class).delete(id);
    }

    public int insert(Film fo) {
        return getSqlSession().getMapper(FilmMapper.class).insert(fo);
    }

    public int update(Film ff) {
        return getSqlSession().getMapper(FilmMapper.class).update(ff);
    }

    public Film selectid(int id) {
        return getSqlSession().getMapper(FilmMapper.class).selectid(id);
    }


}
